package com.example.mall.network

import com.example.mall.entity.User
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

interface UserService {
    @GET("user/1")
    fun getUserData(): Call<User>

    @GET("login")
    fun login(@Query("phone") phone: String, @Query("password") password: String): Call<Int>
}